Skip to content

[VRAD] Add %alphatexture (arbitrary VTF for texture shadows)#1150

Open
SirYodaJedi wants to merge 3 commits intoValveSoftware:masterfrom
Yuis-Archives:alphatexture
Open

[VRAD] Add %alphatexture (arbitrary VTF for texture shadows)#1150
SirYodaJedi wants to merge 3 commits intoValveSoftware:masterfrom
Yuis-Archives:alphatexture

Conversation

@SirYodaJedi
Copy link
Copy Markdown

Description

If present, texture shadows will be generated from alpha of %alphatexture instead of $basetexture. This also permits texture shadows from static props without $translucent or $alphatest being present.

I also moved $alphatest check before $translucent check, because it's probably more common (not that that really speeds much up).

I refrained from renaming the now inaccurately-named variables because I didn't want to accidentally break anything.

Additional information

For more information, see VDC page and Facepunch/garrysmod-requests#2603

Legalese

All code is either written by me or is existing SDK code. Permission is granted to use my changes as you see fit; no credit is necessary.

If present, texture shadows will be generated from alpha of %alphatexture instead of $basetexture. This also permits texture shadows without $translucent or $alphatest being present.

I also moved $alphatest check before $translucent check, because it's probably more common.

I refrained from renaming the now inaccurately-named variables because I didn't want to accidentally break anything.
Comment thread src/utils/vrad/vradstaticprops.cpp Outdated
@SirYodaJedi SirYodaJedi changed the title Add %alphatexture (arbitrary VTF for texture shadows) [VRAD] Add %alphatexture (arbitrary VTF for texture shadows) Mar 25, 2025
Bitl added a commit to FIREFIGHT-RELOADED/FIREFIGHT-RELOADED-src-sdk-2013 that referenced this pull request Mar 31, 2025
Generalisk added a commit to Generalisk/SourceSDK-Generalisk that referenced this pull request Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants